import request from '@/utils/request'

// 查询药品信息列表
export function listMedicineInfo(query) {
  return request({
    url: '/btlfbreed/medicineInfo/list',
    method: 'get',
    params: query
  })
}

// 查询药品信息详细
export function getMedicineInfo(id) {
  return request({
    url: '/btlfbreed/medicineInfo/' + id,
    method: 'get'
  })
}

// 新增药品信息
export function addMedicineInfo(data) {
  return request({
    url: '/btlfbreed/medicineInfo',
    method: 'post',
    data: data
  })
}

// 修改药品信息
export function updateMedicineInfo(data) {
  return request({
    url: '/btlfbreed/medicineInfo',
    method: 'put',
    data: data
  })
}

// 删除药品信息
export function delMedicineInfo(id) {
  return request({
    url: '/btlfbreed/medicineInfo/' + id,
    method: 'delete'
  })
}
// 查询饲料管理详细
export function getOptionselect() {
  return request({
    url: '/btlfbreed/feedinfo/optionselect',
    method: 'get'
  })
}